{include file="common/header" /}
<!-- 中间区域 -->

<main>
    <div class="product-swiper-box">
        <div class="layui-main d-flex al-c jc-s">
            <div class="prev img_box">
                <img src="/public/home/images/left.png">
            </div>
            <div class="swiper mySwiper">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <a class="item layui-this">
                             <div class="img_box img">
                                <img src="/public/home/images/tool.png">
                            </div>
                            <p>钻削刀具</p>
                        </a>
                       
                    </div><div class="swiper-slide">
                        <a class="item">
                             <div class="img_box img">
                                <img src="/public/home/images/tool2.png">
                            </div>
                            <p>铰削刀具</p>
                        </a>
                       
                    </div><div class="swiper-slide">
                        <a class="item">
                             <div class="img_box img">
                                <img src="/public/home/images/tool3.png">
                            </div>
                            <p>螺纹刀具</p>
                        </a>
                       
                    </div><div class="swiper-slide">
                        <a class="item">
                             <div class="img_box img">
                                <img src="/public/home/images/tool4.png">
                            </div>
                            <p>镗刀系统</p>
                        </a>
                       
                    </div><div class="swiper-slide">
                        <a class="item">
                             <div class="img_box img">
                                <img src="/public/home/images/tool.png">
                            </div>
                            <p>钻削刀具</p>
                        </a>
                       
                    </div>
                </div>
            </div>
            <div class="next img_box">
                <img src="/public/home/images/right.png">
            </div>
        </div>
    </div>

    <section class="pt40">
        <div class="layui-main">
            <ul class="mt40 layui-form d-grid grid2 grid-xs1 product-search gap30">
                <li>
                    <select>
                        <option>钻头</option>
                    </select>
                </li>
                <li>
                    <select>
                        <option>xxxx系列</option>
                    </select>
                </li>
            </ul>
            <ul class="product-list d-grid grid3 gap40 grid-xs1 mt40">

                {foreach name="articleList" item="atc"}
                <a href="/index/Article/show/cat_id/{$atc.cat_id}/id/{$atc.id}">
                    <div class="img_100 img1">
                        <img src="{$atc.logo}">
                    </div>
                    <p >{$atc.title}</p>

                </a> 
                {/foreach}
            </ul>


            <div class="pagenum1">

                <div id="demo-laypage-normal-1"></div>
            </div>
        </div>
    </section>
</main>


<script src="__ROOT__/public/home/js/index.js"></script>
<script src="__ROOT__/public/home/js/swiper-bundle.min.js"></script>
<script>
    layui.use(function () {
        var laypage = layui.laypage;
        // 普通用法
        laypage.render({
            elem: 'demo-laypage-normal-1',
            count: 50 // 数据总数
        });

    });
    	var swiper = new Swiper(".mySwiper", {
		navigation: {
			nextEl: ".next",
			prevEl: ".prev",
		},
		  slidesPerView: 1,
		  breakpoints: {
            768: {  //当屏幕宽度大于等于768 
                slidesPerView: 5,
                spaceBetween: 20
            },
        },
		autoplay: false,
	});
</script>
{include file="common/footer" /}